<<<<<<< HEAD
import request from "@/utils/request";

// 考试管理模块Api
// ----------------------------------------------
// 试卷信息子模块数据请求，试卷信息子模块数据请求，试卷信息子模块数据请求


// 试卷信息数据列表
export const onPaperList = params => {
=======
import request from '@/utils/request'
// 试卷信息列表
export function getPaperList(params) {
>>>>>>> f813540e5411455e7f6aef78f278a4ef7a04d3d2
  return request({
    url: '/exam/paper',
    method: 'GET',
    params
  })
}
<<<<<<< HEAD
// 获取单个试卷信息
export const paperInquire = id => {
=======
// 试卷状态
export function PaperStatus(id, status) {
>>>>>>> f813540e5411455e7f6aef78f278a4ef7a04d3d2
  return request({
    url: `/exam/paper/${id}/${status}`,
    method: 'GET'
  })
}
// 删除
export function delPaper(id) {
  return request({
    url: `/exam/paper/${id}`,
    method: 'DELETE'
  })
}
<<<<<<< HEAD


// 试卷归属学科下拉菜单获取信息
export const getSubjectTree = () => { //搜索条件中归属学科下拉数据显示
=======
// 预览
export function viewPaper(id) {
>>>>>>> f813540e5411455e7f6aef78f278a4ef7a04d3d2
  return request({
    url: `/exam/paper/${id}`,
    method: 'GET'
  })
}
<<<<<<< HEAD


// 试卷信息信息状态修改
export const paperState = id => {
=======
// 添加
export function addPaper(data) {
>>>>>>> f813540e5411455e7f6aef78f278a4ef7a04d3d2
  return request({
    url: `/exam/paper`,
    method: 'POST',
    data
  })
}
<<<<<<< HEAD


// 试卷删除
export const onDelPaper = id => {
=======
// 详情
export function getPaperInfo(id) {
>>>>>>> f813540e5411455e7f6aef78f278a4ef7a04d3d2
  return request({
    url: `/exam/paper/${id}`,
    method: 'GET'
  })
}
// 修改
export function editPaper(data) {
  return request({
    url: `/exam/paper/${data.id}`,
    method: 'PUT',
    data
  })
}
